<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>编辑用户</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: #e0f7fa;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            padding: 40px 20px;
        }

        h1 {
            font-size: 2.5rem;
            margin-bottom: 30px;
            color: #00f7ff;
            text-shadow: 0 0 12px #00f7ff;
        }

        nav {
            margin-bottom: 30px;
        }

        nav a {
            margin: 0 10px;
            padding: 10px 20px;
            background: linear-gradient(90deg, #00f7ff, #01c8ff);
            color: #001f29;
            text-decoration: none;
            font-weight: bold;
            border-radius: 6px;
            transition: transform 0.2s, box-shadow 0.3s;
        }

        nav a:hover {
            transform: scale(1.06);
            box-shadow: 0 0 12px #00f7ff;
        }

        form {
            background: rgba(255, 255, 255, 0.05);
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 0 15px rgba(0, 247, 255, 0.2);
            width: 100%;
            max-width: 500px;
        }

        p {
            margin-bottom: 18px;
            font-size: 1rem;
        }

        input[type="text"],
        input[type="email"] {
            width: 100%;
            padding: 10px;
            border: none;
            border-radius: 6px;
            background-color: #1c2b36;
            color: #e0f7fa;
            font-size: 1rem;
        }

        input[type="submit"] {
            background: linear-gradient(90deg, #00f7ff, #01c8ff);
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            color: #001f29;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            width: 100%;
            transition: transform 0.2s, box-shadow 0.3s;
        }

        input[type="submit"]:hover {
            transform: scale(1.03);
            box-shadow: 0 0 12px #00f7ff;
        }
    </style>
</head>
<body>
    <h1>编辑用户</h1>
    <nav>
        <a href="/users">用户管理</a>
        <a href="/">首页</a>
    </nav>
    <form action="/users/edit/{{.User.ID}}" method="post">
        <p>姓名: <input type="text" name="name" value="{{.User.Name}}" required></p>
        <p>邮箱: <input type="email" name="email" value="{{.User.Email}}"></p>
        <p>电话: <input type="text" name="phone" value="{{.User.Phone}}"></p>
        <p><input type="submit" value="保存"></p>
    </form>
</body>
</html>
